#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  first.py
#       Author @  Huoty
#  Create date @  2016-05-13 11:14:03
#  Description @  
# *************************************************************

class MyRange(object):
    def __init__(self, n):
        self.idx = 0
        self.n = n

    def __iter__(self):
        return self

# Script starts from here

mr = MyRange(4)
for i in mr:
    print i
